package com.bm.api.controller;

import com.bm.api.service.RandomUserService;
import com.bm.common.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/randomUser/")
@Api(tags = "随机展示4个人-李松洋")
public class RandomUserController {
    @Resource
    private RandomUserService service;
    @ApiOperation(value = "随机抽取四个呆b")
    @GetMapping("random.do")
    public R random(@RequestParam long uid){
        return service.random(uid);
    }
    
}
